import logging
import yagmail
from appium import webdriver
def log_set():
    logging.basicConfig(filename='log.txt',level=logging.DEBUG,filemode='w+',format="%(asctime)s *** %(levelname)s *** %(message)s")
def send_mail(filepath):
    mail=yagmail.SMTP(user='264325917@qq.com', password='sxdpqvizcmxsbjjb',host='stmp.qq.com')
    mail.send(to='264325917@qq.com',subject='测试报告',conntents='今日报告，请查看',attachments=filepath)
    
